import torch

x = torch.rand(5, 3)
print(x)
# :是做索引运算
y = x[0, :]
# y += 1
# print(y)
print(x[0, :])  # 源tensor也被改了
